Exodus 19:12-13

12And you shall set limits for the people all around, saying, ‘Take care not to go up into the mountain or touch the edge of it. aWhoever touches the mountain shall be put to death. 13No hand shall touch him, but he shall be stoned or shot;
That is,  shot with an arrow
whether beast or man, he shall not live.’ When cthe trumpet sounds a long blast, they shall come up to the mountain.”

Exodus 21:14

14But if a man willfully attacks another to kill him by cunning, dyou shall take him from my altar, that he may die.

Numbers 3:10

10And you shall appoint Aaron and his sons, and ethey shall guard their priesthood. But if fany outsider comes near, he shall be put to death.”

Numbers 3:38

38Those who were to camp before the tabernacle on the east, before the tent of meeting toward the sunrise, were Moses and Aaron and his sons, gguarding the sanctuary itself, to protect
Hebrew guard
the people of Israel. And any outsider who came near was to be put to death.
Copyright information for ESV